<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="lib/vue.js"></script>
    <style>
        [v-cloak] {
            display: none;
        }
    </style>
</head>

<body>
    <div id="app">
        <!-- 
         v-text
         v-html
         v-bind
         v-show v-if v-else-if v-else
         v-for
         v-on
         v-slot
         v-model
         v-pre
         v-once
         v-cloak
        -->
        <div>
            {{ msg }}
        </div>
        
        <div v-pre>
            <!-- 跳过该元素与其子元素的编译过程 -->
            {{ msg }}
        </div>
        <input type="text" v-model="msg">
        <div v-once>
            <!-- 只渲染元素和组件一次 -->
            {{ msg }}
        </div>
        <hr />
        <div v-cloak>
            <!-- 在未编译时隐藏元素标签，直到实例准备完成 -->
            {{ msg }}
        </div>
    </div>
</body>
<script src="lib/vue.js"></script>
<script>
    new Vue({
        el: '#app',
        data: {
            msg: 'hello vue'
        }
    })
</script>

</html>